#ifndef __Math__Level__
#define __Math__Level__

#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "LevelConfig.h"

USING_NS_CC;
using namespace ui;
class LevelManager : public cocos2d::Layer
{
private:
    Size m_screenSize;
    void btnSettingClick(Ref* pSender);
    void btnCloseClick(Ref* pSender);
    //  void init();
    Button* btnSettings;
    Node* pnlSettings;
    void initBackground();
    
    int currPage;
    int numPage;
    Node* levelPanel;
    float kSpriteWidth;
    float kSpriteHeight;
    float kPaddingHeight;
    float kPaddingWidth;
    
    void initButton();
    void initLevelPanel();
    
    void ReturnMenuScene();
    void gotoPage(Ref* pSender);
    void checkClickButton();
    
    void GoToGamePlayScene();
    cocos2d::Vector<cocos2d::ui::Button*> m_vectorPage;
public:

    virtual void update(float dt);
    static bool m_isActive;
    float deltaTime;
    void initalize();
    static Scene* createScene(ELevelMode levelMode);
    float kScale;
    virtual bool init();
    static ELevelMode m_ELevelMode;
	static int currID;
    CREATE_FUNC(LevelManager);
};


#endif // __HELLOWORLD_SCENE_H__
